include:
    - jdk.jdk8

ogstash-tar-install:
    file.managed: #cp文件到minion端
        - name: /usr/local/src/packetbeat-6.4.1.rpm
        - source: salt://files/packetbeat-6.4.1-x86_64.rpm
        - user: root
        - group: root
        - mode: 644

    cmd.run: #执行本地命令
        - name: rpm -ivh  /usr/local/src/packetbeat-6.4.1.rpm
        - unless: rpm -q packetbeat
        - require:
            - file: /usr/local/src/packetbeat-6.4.1.rpm
